#include <stdio.h>

int main() {
    int N, S;
    scanf("%d %d", &N, &S);
    if (S % 2 == 1) {
        printf("0\n");
        return 0;
    }

    S = S / 2;

    long long a[51][501];
    for (int i = 0; i <= 50; ++i)
        for (int j = 0; j <= 500; ++j)
                a[i][j] = 0;

    for (int i = 0; i <= 50; ++i)
        a[i][0] = 1;
    for (int j = 0; j < 10; ++j)
        a[1][j] = 1;

    for (int j = 1; j <= S; ++j) {
        for (int i = 2; i <= N; ++i) {
            for (int k = 0; (k < 10) && (k <= j); ++k)
                a[i][j] += a[i-1][j-k];
        }
    }

    long long r = a[N][S];
    printf("%lld\n", r*r);
    return 0;
}
